<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
    <style>
        @page {
            size: A4;
            background-image: url("");    }
        /*@page {*/
        /*    size: 279mm 200mm;*/
        /*}*/

        body {
            font-family: SimSun;
            font-size: 10px;
        }

        .h1 {
            font-size: 22px;
            font-weight: bold;
        }

        #mx td {
            /*border: 0.1px solid black; !*设置边框样式、颜色和大小*!*/
        }

        #mx2 td {
            border: 0px solid black; /*设置边框样式、颜色和大小*/
        }

        .headTitle {
            font-size: 14px;
        }

        .div {
            position: relative;
            height: 165mm;
        }

        .corner-content {
            text-align: left;
            vertical-align: bottom;
        }
    </style>
</head>
<body >
<#if true>
<#assign imgBase64 = "" >
</#if>
<#assign suanmian = (invoicetype != "票据签发") >
<#escape x as x?html>
    <div style="margin-top:0; <#if suanmian >page-break-after:always;</#if>" class="div">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-size:14px;line-height:12px">
            <tr style="height: 20px">
                <td>&nbsp;</td>
            </tr>
            <tr style="height: 20px">
                <td><img style="width: 150px;height: 35px;" src="${imgBase64!""}"/></td>
            </tr>
            <tr style="height: 20px">
                <td>&nbsp;</td>
            </tr>
        </table>
        <div style="width:100%;text-align:center">
            <h2 style="display:inline;" class="h1">电子银行承兑汇票</h2>
        </div>
        <br/>
        <br/>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-size:14px;line-height:12px">
            <colgroup>
                <col text-align="left" width="20%"/>
                <col text-align="left" width="30%"/>
                <col text-align="left" width="20%"/>
                <col text-align="left" width="30%"/>
            </colgroup>
            <tbody>
            <tr>
                <td style="text-align: right">出票日期：</td>
                <td style="text-align: left">${invoicedate!""}</td>
                <td style="text-align: right">票据状态：</td>
                <td style="text-align: left">${sfflag!""}</td>
            </tr>
            <tr style="height: 12px;"/>
            <tr>
                <td style="text-align: right">汇票到期日：</td>
                <td style="text-align: left">${enddate!""}</td>
                <td style="text-align: right">票据（包）号：</td>
                <td style="text-align: left">${fbmbillno!""}</td>
            </tr>
            <tr style="height: 12px;"/>
            <tr>
                <td style="text-align: right"></td>
                <td style="text-align: left"></td>
                <td style="text-align: right">子票区间：</td>
                <td style="text-align: left">${billrange!""}</td>
            </tr>
            <tr style="height: 5px;"/>
            </tbody>
        </table>
        <!-- 数据行列宽设置 -->
        <#assign lineColumnt1= 10  />
        <#assign lineColumnt2= 10  />
        <#assign lineColumnt4= 5  />
        <#assign lineColumnt5= lineColumnt4  />
        <#assign lineColumnt6= lineColumnt4  />
        <#assign lineColumnt7= lineColumnt4 />
        <#assign lineColumnt8= lineColumnt4 />
        <#assign lineColumnt9= lineColumnt4 />
        <#assign lineColumnt10= lineColumnt4 />
        <#assign lineColumnt11= lineColumnt4 />
        <#assign lineColumnt12= lineColumnt4 />
        <#assign lineColumnt13= lineColumnt4 />
        <#assign lineColumnt14= lineColumnt4 />
        <#assign lineColumnt15= lineColumnt4  />

        <#assign lineColumnt3= - lineColumnt1 - lineColumnt2  - lineColumnt4 - lineColumnt5
        - lineColumnt6 - lineColumnt7 - lineColumnt8 - lineColumnt9 - lineColumnt10 - lineColumnt11
        - lineColumnt12 - lineColumnt13 - lineColumnt14 - lineColumnt15  />
        <div width="100%">
            <table width="100%" border="1" cellspacing="0" cellpadding="0"
                   style="font-size:14px;text-align:left;border-collapse:collapse;" id="mx">

                <colgroup>
                    <col width="${lineColumnt1}%"/>
                    <col width="${lineColumnt2}%"/>
                    <col width="${lineColumnt3}%"/>
                    <col width="${lineColumnt4}%"/>
                    <col width="${lineColumnt5}%"/>
                    <col width="${lineColumnt6}%"/>
                    <col width="${lineColumnt7}%"/>
                    <col width="${lineColumnt8}%"/>
                    <col width="${lineColumnt9}%"/>
                    <col width="${lineColumnt10}%"/>
                    <col width="${lineColumnt11}%"/>
                    <col width="${lineColumnt12}%"/>
                    <col width="${lineColumnt13}%"/>
                    <col width="${lineColumnt14}%"/>
                    <col width="${lineColumnt15}%"/>
                </colgroup>
                <thead>
                <tr class="headTitle" style="height: 25px;">
                    <td rowspan="3">出票人</td>
                    <td>名称</td>
                    <td colspan="3">${pk_payunit!""}</td>
                    <td rowspan="3" colspan="2">收款人</td>
                    <td colspan="2">名称</td>
                    <td colspan="6">${receiveunit!""}</td>
                </tr>
                <tr class="headTitle" style="height: 25px;">
                    <td>帐号</td>
                    <td colspan="3">${paybankacc!""}</td>
                    <td colspan="2">帐号</td>
                    <td colspan="6">${receivebankacc!""}</td>
                </tr>
                <tr class="headTitle" style="height: 25px;">
                    <td>开户银行名称</td>
                    <td colspan="3">${pk_paybank!""}</td>
                    <td colspan="2">开户银行名称</td>
                    <td colspan="6">${receivebank!""}</td>
                </tr>
                <tr class="headTitle" style="height: 25px;">
                    <td rowspan="2">票据（包）金额</td>
                    <td rowspan="2">人民币（大写）</td>
                    <td rowspan="2">${chinesemoneyy!""}</td>
                    <td style="text-align:center">十亿</td>
                    <td style="text-align:center">亿</td>
                    <td style="text-align:center">千</td>
                    <td style="text-align:center">百</td>
                    <td style="text-align:center">十</td>
                    <td style="text-align:center">万</td>
                    <td style="text-align:center">千</td>
                    <td style="text-align:center">百</td>
                    <td style="text-align:center">十</td>
                    <td style="text-align:center">元</td>
                    <td style="text-align:center">角</td>
                    <td style="text-align:center">分</td>
                </tr>
                <tr class="headTitle" style="height: 25px;">
                    <td style="text-align:center">${shiyi !""}</td>
                    <td style="text-align:center">${yi !""}</td>
                    <td style="text-align:center">${qianwan !""}</td>
                    <td style="text-align:center">${baiwan !""}</td>
                    <td style="text-align:center">${shiwan !""}</td>
                    <td style="text-align:center">${wan !""}</td>
                    <td style="text-align:center">${qian !""}</td>
                    <td style="text-align:center">${bai !""}</td>
                    <td style="text-align:center">${shi !""}</td>
                    <td style="text-align:center">${yuan !""}</td>
                    <td style="text-align:center">${jiao !""}</td>
                    <td style="text-align:center">${fen !""}</td>
                </tr>
                <tr class="headTitle" style="height: 25px;">
                    <td rowspan="2">承兑人信息</td>
                    <td>名称</td>
                    <td colspan="3">${acceptorname!""}</td>
                    <td colspan="2">开户行行号</td>
                    <td colspan="10">${signagrbanknum!""}</td>
                </tr>
                <tr class="headTitle" style="height: 25px;">
                    <td>帐号</td>
                    <td colspan="3">${acceptoraccount!""}</td>
                    <td colspan="2">开户银行名称</td>
                    <td colspan="10">${signagrbankname!""}</td>
                </tr>
                <tr class="headTitle" style="height: 25px;">
                    <td>交易合同号</td>
                    <td colspan="2"></td>
                    <td colspan="2" rowspan="2" class="corner-content">承兑信息</td>
                    <td colspan="10">出票人承诺：本汇票请予以承兑，到期无条件付款</td>
                </tr>
                <tr class="headTitle" style="height: 25px;">
                    <td>能否转让</td>
                    <td colspan="2" style="text-align:center">${subcontractcirculation!""}-${iscantrans!""}</td>
                    <td colspan="10">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" id="mx2">
                            <tbody>
                            <tr>
                                <td style="text-align: left">承兑人承兑：本汇票已经承兑，到期无条件付款；</td>
                            </tr>
                            <tr>
                                <td style="text-align: right">承兑日期：${invoicedate1!""}</td>
                            </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr class="headTitle" style="height: 25px;">
                    <td>评级信息（
                        由出票人、
                        承兑人自己
                        记载，仅供
                        参考）
                    </td>
                    <td>出票人</td>
                    <td colspan="3">评级主体:</td>
                    <td colspan="6">信用等级:</td>
                    <td colspan="2">评级到期日</td>
                    <td colspan="2"></td>
                </tr>
                <tr class="headTitle" style="height: 25px;">
                    <td>评级信息（
                        由出票人、承兑人自己记载，仅供参考）
                    </td>
                    <td>承兑人</td>
                    <td colspan="3">评级主体:</td>
                    <td colspan="6">信用等级:</td>
                    <td colspan="2">评级到期日</td>
                    <td colspan="2"></td>
                </tr>
                </thead>
            </table>
        </div>
    </div>
    <#if  suanmian>
        <div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-size:14px;line-height:12px">
                <tr style="height: 20px">
                    <td>&nbsp;</td>
                </tr>
                <tr style="height: 20px">
                    <td><img style="width: 150px;height: 35px;" src="${imgBase64!""}"/></td>
                </tr>
                <tr style="height: 20px">
                    <td>&nbsp;</td>
                </tr>
            </table>
            <div style="width:100%;text-align:center">
                <h2 style="display:inline;" class="h1">电子银行承兑汇票</h2>
            </div>
            <br/>
            <br/>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-size:14px;line-height:12px">
                <colgroup>
                    <col text-align="left" width="15%"/>
                    <col text-align="left" width="85    %"/>
                </colgroup>
                <tr>
                    <td style="text-align: left">票据（包）号</td>
                    <td style="text-align: left">${fbmbillno!""}</td>
                </tr>
                <tr style="height: 12px;"/>
                <tr>
                    <td style="text-align: left">子票区间</td>
                    <td style="text-align: left">${billrange!""}</td>
                </tr>
                <tr style="height: 5px;"/>
                <tr>
                    <td colspan="2" style="text-align: center;"><b>================================================================================================</b>
                    </td>
                </tr>
            </table>
            <div width="100%">
                <table width="100%" border="1" cellspacing="0" cellpadding="0"
                       style="font-size:14px;text-align:left;border-collapse:collapse;">
                    <colgroup>
                        <col width="25%"/>
                        <col width="75"/>
                    </colgroup>
                    <tr class="headTitle" style="height: 25px;">
                        <td colspan="2" style="text-align: center">转让背书</td>
                    </tr>
                    <tr class="headTitle" style="height: 25px;">
                        <td>背书人名称</td>
                        <td>${pk_customer!""}</td>
                    </tr>
                    <tr class="headTitle" style="height: 25px;">
                        <td>被背书人名称</td>
                        <td>${pk_org!""}</td>
                    </tr>
                    <tr class="headTitle" style="height: 25px;">
                        <td>不得转让标记</td>
                        <td>${iscantrans!""}</td>
                    </tr>
                    <tr class="headTitle" style="height: 25px;">
                        <td>背书日期</td>
                        <td>${gatherdate!""}</td>
                    </tr>
                </table>
            </div>
        </div>
    </#if>
</#escape>
</body>
</html>
